<template>
  <div class="home">
    <h3>
      Home
    </h3>
    <input type="text">
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  // 清空定时任务
  // bus.$on  bus.$emit  bus.$off
  beforeDestroy() {
    console.log('准备销毁')
  },
  destroyed() {
    console.log('已经销毁')
  }
}
</script>
